﻿using System.Web.Mvc;

namespace BoneSystem.Extensions.Annotations.InputTypeAnnotations
{
    public class RadioItemAttribute : InputAttribute
    {
        public string Description { get; set; }
        public object Value { get; set; }
        public override TagBuilder TagBuilder()
        {
            var tag = base.TagBuilder();
            tag.Attributes["type"] = "radio";
            tag.Attributes["value"] = Value.ToString();
            tag.InnerHtml = Description;
            return tag;
        }
    }
}
